import { http } from "@/utils/http";
import { systemUrlApi } from "@/api/utils";

type Result = Array<any>;

export const getAsyncRoutes = () => {
  return http.request<Result>(
    "get",
    systemUrlApi("/system/v1/menu/user-menus")
  );
  // return http.request<Result>("get", "/get-async-routes");
};
